package com.homework.Pets;

public class Cats extends Pets {
    private String hobby;

    public Cats(String name, int age, int health, int love, String hobby) {
        super(name, age, health, love);
        this.hobby = hobby;
    }

    public Cats(String hobby) {
        this.hobby = hobby;
    }

    public void show(){
        super.show();
        System.out.println("爱好:" + this.hobby);
    }
    @Override
    public void eat() {
        System.out.println("🐱吃🐟，喜爱度增加！");
        super.love += 10;
    }

    @Override
    public void toHospital() {
        System.out.println("🐱去医院，健康度增加！");
        super.health += 10;
    }

    public void play(){
        System.out.println("撸🐱🐱");
    }
}
